package com.gitee.feizns.config.meta.api;

import com.gitee.feizns.StringUtils;
import lombok.Data;

import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author feizns
 * @since 2019/8/12
 */
@Data
public class Vo {

    /**
     * 字段列表
     */
    private List<String> fields = Collections.emptyList();

    public List<String> getFields() {
        return fields.stream().map(StringUtils::underlineToHump).collect(Collectors.toList());
    }

}
